<template>
  <div id="main" style="width:600px; height:600px;"></div>
</template>

<script>



export default {
    name:"Cart",
    data(){
        return{
            info:['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
        }
    },

    mounted(){

        var chartDom = document.getElementById('main');

        var myChart = this.$echarts.init(chartDom);
        var option = {
            xAxis: {
                type: 'category',
                data: this.info
            },
            yAxis: {
                type: 'value'
            },
            series: [
                {
                data: [120, 200, 150, 80, 70, 110, 130],
                type: 'bar'
                }
            ]
        };
        option && myChart.setOption(option);
    }
}
</script>

<style>

</style>